package com.anfeng.cms.domain.emp;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴朋
 * @since 2019-07-15
 */
@TableName("af_post_change_log")
public class AfPostChangeLog extends Model<AfPostChangeLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 变更记录id
     */
	private String id;
    /**
     * 员工id
     */
	@TableField("emp_id")
	private String empId;

	/**
	 * 员工姓名
	 */
	@TableField("emp_name")
	private String empName;

	/**
     * 变更前部门id
     */
	@TableField("before_dept_id")
	private String beforeDeptId;
    /**
     * 变更前部门名
     */
	@TableField("before_dept_name")
	private String beforeDeptName;
    /**
     * 变更后部门id
     */
	@TableField("after_dept_id")
	private String afterDeptId;
    /**
     * 变更后部门名
     */
	@TableField("after_dept_name")
	private String afterDeptName;
    /**
     * 变更前工种id
     */
	@TableField("before_job_id")
	private String beforeJobId;
    /**
     * 变更前工种
     */
	@TableField("before_job_name")
	private String beforeJobName;
    /**
     * 变更后工作id
     */
	@TableField("after_job_id")
	private String afterJobId;
    /**
     * 变更后工种
     */
	@TableField("after_job_name")
	private String afterJobName;
    /**
     * 数据状态（1 正常  2 逻辑删除）
     */
	private Integer state;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 更新时间
     */
	@TableField("modified_time")
	private Date modifiedTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEmpId() {
		return empId;
	}

	public void setEmpId(String empId) {
		this.empId = empId;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	public String getBeforeDeptId() {
		return beforeDeptId;
	}

	public void setBeforeDeptId(String beforeDeptId) {
		this.beforeDeptId = beforeDeptId;
	}

	public String getBeforeDeptName() {
		return beforeDeptName;
	}

	public void setBeforeDeptName(String beforeDeptName) {
		this.beforeDeptName = beforeDeptName;
	}

	public String getAfterDeptId() {
		return afterDeptId;
	}

	public void setAfterDeptId(String afterDeptId) {
		this.afterDeptId = afterDeptId;
	}

	public String getAfterDeptName() {
		return afterDeptName;
	}

	public void setAfterDeptName(String afterDeptName) {
		this.afterDeptName = afterDeptName;
	}

	public String getBeforeJobId() {
		return beforeJobId;
	}

	public void setBeforeJobId(String beforeJobId) {
		this.beforeJobId = beforeJobId;
	}

	public String getBeforeJobName() {
		return beforeJobName;
	}

	public void setBeforeJobName(String beforeJobName) {
		this.beforeJobName = beforeJobName;
	}

	public String getAfterJobId() {
		return afterJobId;
	}

	public void setAfterJobId(String afterJobId) {
		this.afterJobId = afterJobId;
	}

	public String getAfterJobName() {
		return afterJobName;
	}

	public void setAfterJobName(String afterJobName) {
		this.afterJobName = afterJobName;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifiedTime() {
		return modifiedTime;
	}

	public void setModifiedTime(Date modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("AfPostChangeLog{");
		sb.append("id='").append(id).append('\'');
		sb.append(", empId='").append(empId).append('\'');
		sb.append(", empName='").append(empName).append('\'');
		sb.append(", beforeDeptId='").append(beforeDeptId).append('\'');
		sb.append(", beforeDeptName='").append(beforeDeptName).append('\'');
		sb.append(", afterDeptId='").append(afterDeptId).append('\'');
		sb.append(", afterDeptName='").append(afterDeptName).append('\'');
		sb.append(", beforeJobId='").append(beforeJobId).append('\'');
		sb.append(", beforeJobName='").append(beforeJobName).append('\'');
		sb.append(", afterJobId='").append(afterJobId).append('\'');
		sb.append(", afterJobName='").append(afterJobName).append('\'');
		sb.append(", state=").append(state);
		sb.append(", createTime=").append(createTime);
		sb.append(", modifiedTime=").append(modifiedTime);
		sb.append('}');
		return sb.toString();
	}
}
